﻿

<!DOCTYPE html>
<html lang="zh-CN">
    <style>
    #t1{
     height: 40px;
    }
    th,td{
    text-align: center;
   }
</style>


<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214/historyTable" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="historyTableList" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label >MES批号：</label>
            <g:select name="lotId" from="${lotIdList}" data-toggle="selectpicker" data-live-search="true" optionKey="LOT_ID" optionValue="LOT_ID" value="${lotId}" noSelection="['':'ALL']" />&nbsp;
            <label >调度单号：</label>
            <g:select name="woId" from="${woIdList}"   data-toggle="selectpicker"  data-live-search="true" optionKey="WO_ID" optionValue="WO_ID" value="${woId}" noSelection="['':'ALL']" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/bb214/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;

        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <g:if test="${historyTableList.size() > 0}">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <th width="110">MES批号</th>
                <th width="110">调度单号</th>
                <th width="110">类型</th>
                <th width="110">产品型号</th>
                <th width="110">产品名称</th>
                <th width="110">产品图号</th>
                <th width="110">封装结构</th>
                <th width="110">成模批号</th>
                <th width="110">组装批号</th>
                <th width="110">封装批号</th>
                <th width="110">工步编号</th>
                <th width="110">工步名称</th>
                <th width="110">数量</th>
                <th width="110">事务类型</th>
                <th width="110">事务时间</th>
                <th width="110">状态</th>
                <th width="110">操作人ID</th>
                <th width="110">姓名</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${historyTableList}" status="i" var="historyTableInstance">
                <tr >
                    <td  id="lot">
                        <a href="${request.getContextPath()}/bb214/openTable?lotId=<%=historyTableInstance.LOT_ID%>" data-toggle="navtab"  data-id="dialog-normal" data-options="{id:'table', title:'工艺流程单'}">
                            ${historyTableInstance.LOT_ID}
                        </a>
                    </td>
                    <td>${historyTableInstance.WO_ID}</td>
                    <td>${historyTableInstance.NEW_TYPE}</td>
                    <td>${historyTableInstance.PART_NAME}</td>
                    <td>${historyTableInstance.PART_DESC}</td>
                    <td>${historyTableInstance.PART_TNO}</td>
                    <td>${historyTableInstance.PACKAG}</td>
                    <td>${historyTableInstance.CUSTOMER_ORDER}</td>
                    <td>${historyTableInstance.CUSTOMER_PART_ID}</td>
                    <td>${historyTableInstance.CUSTOMER_CODE}</td>
                    <td>${historyTableInstance.STEP_NAME}</td>
                    <td>${historyTableInstance.STEP_DESC}</td>
                    <td>${historyTableInstance.MAIN_QTY}</td>
                    <td>${historyTableInstance.TRANS_TYPE}</td>
                    <td>${historyTableInstance.TRANS_TIME}</td>
                    <td>${historyTableInstance.STATE}</td>
                    <td>${historyTableInstance.OPERATOR1}</td>
                    <td>${historyTableInstance.USER_DESC}</td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel" />
    </g:else>
</div>
<g:render template="../template/pagination" />
<html>
